Any 600 VA UPS should be fine for a home PC.
Roughly it should last for around 10 min, or may be more which is more than enough to save your important documents and games and safely shut down your desktop.
For 2 to 3 hours backup, you would need a high capacity inverter with a big battery.