Depending on the make of your pc you may have a recovery partition to restore from, or you can purchase a set of recovery disks from the maker.
As you havn't given us any information regarding make and model, if it's a brand name or home built, it's not possible to say more.