When wanting to charge a camera on an airplane, for instance, the user shouldn't be left to guess if his photos are going to be copied off the device.
I've done surgery with a razor and some good shrink tube twice now to make more of these little gems.
Smarter devices like my Palm Pre actually ask if you want to let the host connect to them or just take power.
You've got a great idea though. A simple micro like a PIC or an arduino (atmel) could do this and get all kinds of neat data on the power flow as well.
USB 2.0 in particular (10.9 MB zip file): http://www.usb.org/developers/docs/usb_20_122909-2.zip
Mind you, I find the point that there should be software for managing a battery recharger incredible.
$ man dma
No manual entry for dmaAnd the description of how to exploit it
http://www.schneier.com/blog/archives/2006/06/hacking_comput...
The FireWire version http://www.storm.net.nz/static/files/ab_firewire_rux2k6-fina...