Arduino for detecting low voltage on UPS
The Atmega used on the Arduino has an ADC on board. Use it to measure the battery voltage and when the voltage falls below a threshold use a digital output to open a relay to cut off the load from the battery.

Now you can start designing your circuit. If you have more detailed questions during that process feel free to come back here.