Just re-published an older project on Github.

UPS Battery Service runs a Windows service which watches local battery events, which are then logged in local and/or Event Log where you can further proceed with custom actions, like informational emails, shutdowns etc. (using scheduled tasks).

You can get it on Github.

 

  [email protected]