Many UPS models include a USB port which you connect to your computer. You also install software on your computer which will shut down the system in a proper, safe manner after there has been a power outage for a certain time period. Look for a model that has that feature.
I have a Cleanline brand that I bought at Banana and it keeps my computer and monitor running for over 35 minutes what the power goes out.