Just messing around to see if I could extract the same power information shown in gnome's power control panel. Indeed, it is possible!
This quick example just prints some stuff the console. Now to see if I can get this information up in the status bar.