Plugging your PC directly into a wall socket is terribly risky — most people do it anyway
… Otherwise, if you want surge protection for the entire house, whole-house surge protectors with a 3,000 Joule rating cost a little over $100. These devices sit between the power grid and your home's power supply, preventing power surges from penetrating your house. …