Need transistor/circuit help for building a power sensing circuit.

A UPS should have a serial interface you can use to obtain status information I believe.