In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available.
Is this information available programatically, either in Windows (perhaps WMI?) or Linux? I've looked in MSDN with little success so far.
Linux:
lsusb -v | grep MaxPower
I think WMI is going to be your best bet here. I'm not familar with exactly what you want, but I'd start with the Win32_VoltageProbe class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With