yeah, that's what I meant. There's probably no way to detect whether an outlet, car, or computer/laptop/etc. is charging.
But you -can- detect whether there's an active USB connection. If there isn't, you could assume it's on either the outlet or car charger (and similar).