If you have an APC UPS, @srwhite just released a way that you could do it.
[RELEASE] APC UPS Monitor Driver