Or, you could buy a UPS and call it a day.
I had a black-out and my APC with aged batteries keep the current for a very short period... anyway my system had a black-out due to the sudden break of the UPS and recovery the system was a true nightmare. I was very lucky and after a lot of attempts I gained a regular boot with no data loss on my Crucial M4 256 GB... An UPS is a big help but it's not the final solution. There are too many variables playing in these situations (UPS integrity, battery age, UPS manager software, seriousness of the current shock...) to trust on an UPS only...
Seems like an extreme corner condition. In this case, you are really saying "I can't be trusted to monitor the battery life of my UPS, so please let my SSD have a safe shut down mechanism". That said, I really need to check the condition of my UPS