Plug-in for Locale (which is not free) to detect whether the power source is USB or other (AC/car charger/dock). Can't distinguish between non-USB sources, but you can use other plugins to detect docks.
Needs Android 2.2+ & Locale which isn't free.
Apparently fails on Motorola Droid but I don't have one to test.
Tags: locale power source plugin , locale power , detect ac power , locale source , locale ac power , how detects a car charger? , google , plugins , lists of source of power