Look at the capacity of the battery backup unit you are considering...it should be rated in Ampere-Hours, i.e., the number of amps drawn times the hours it will supply that much juice. Then, look at the pumps you want to back up and see how much current they draw (in amperes). Just divide the Amp-Hours available in the backup unit by the amps required by the equipment you want to run, and that will give you the hours it will back up.
The quick answer is, that the pumps draw a whole helluva lot less power than a CPU and Monitor, so you will probably get 6 or 8 hours out of a battery backup system designed for computers, assuming your are not trying to run your MH lighting!