Aside from buying quality hardware, keeping your firmware/drivers up to date, and re-installing a clean copy of Windows on a somewhat regular basis, there's not much you can do. If you have the first two down, and you started with a clean Windows installation, ran it through all the updates, and didn't install and uninstall a lot of stuff, you'll usually have a pretty stable system that stays that way.