The best way to protect your computer is to Purchase a battery backup unit, like those made by APC. I know with the APC units, the company offers up to $150,000 warranty on items plugged into the device in the event they are damaged by a power surge. You can also use these on TVs, DVD players, DVRs and other small electronics. Using a battery backup unit with a lamp is also a cheap way to provide emergency lighting in the event of a power failure. Most units would be able to power a 60 watt bulb for over an hour.
More information about formatting options