Are you building your own PC, or are you buying a pre-built machine?
If you're buying a pre-built machine it will come with a warranty, and you can always buy an extension of that warrenty. The warranty should cover dead hardware and other issues that are not user inflicted.
If your building your own, most hardware comes with a warranty for "X" years.