How to know if your laptop is bypassing the battery and using AC power directly

I do lots of self hosting and some of my machines are old laptops with lids closed.