You don't want a line monitoring circuit- you want to break into the UPS and signal the PC when the battery hits 1.8V/cell or sometime before its internal cutout threshold if it exists. This would make much more sense, you will be working with low voltage grounded DC, and no separate circuit housing or power supply is required.