I don't know anything on an instant basis, but GetSystemPowerStatus
can give an estimate of the remaining battery power. A call that every few minutes (or something in that order) will give an idea of how fast you use power, at least as a percentage of battery life. Of course, this really only works when / if there is a battery - on a desktop or server system it usually will not do anything.
source share