The most annoying thing about power disruptions is that often you don1t know its happening. Similarly, bad power erodes away at the components- over time. Power problems can often disguise itself as occasional lock-ups and freezes. You may consider dedicated lines for your computer. This is not enough.
Surge protectors come in varying shapes and sizes.
Check both your computer1s warranty and your home or office insurance policies. Consider power protection. It's cheap insurance. Here are just a few of many places you can get information on this subject.