Get a solar power, so you don't have to rely on the power grid.
Besides that, I think you can buy a power cord that has a power surge protector. You may have to spend quite a bit in order to plug in all your electronics to a power cord with a surge protector, but it beats buying UPS for all your electronics.