Chances are it's a software problem rather than hardware. If you want to check run prime95 and stress test it, than pick up a program to test the HD for errors, actually for that I think windows has a program to do that but fair warning it will take awhile. While your stress testing it monitor the temps, there are programs out there to do that I just use Speccy if I were you, mainly because it has the computer temps but also tell you exactly what the computer parts are so you can tell us.
That should narrow it down to if it is hardware or software for most cases, if it fails prime 95 over 8h it's hardware, if the temps skyrocket and CPU throttle down you need to clean out your case and possibly better cooling (though probably just clean it out if it was fine before).
But more than likely from my experience it's from too many programs autobooting and programs conflicting with each other. So there are a few things I do before giving up hope, easiest way is go download ccleaner and auslogics disk defrag and run ccleaner (after you unselect what you don't want deleted, like browsing history) and than run auslogics disk defrag and "defrag" and use setting to skip fragments larger than 50mb (this program isn't required you can use whatever you like but I like stuff done quickly and normal defrag setting will just defragment fragmented files and not move things to the faster portions of the disk, and things larger than 50mb don't make much difference in speed if any)
Once you do that go into ccleaner under startup and disable programs that are not useful to booting up, such as steam, utorrent, itunes, etc. Drivers and antivirus are things that should be left alone and allowed to boot, if you don't know what it is leave it alone or google it, still don't know what it is don't disable it. Now restart the computer and update the OS and most of your programs. That alone usually speeds up the computers I end up working on.
If your lazy you can go to http://ninite.com/ and have the programs I mention instal on their own after it creates a custom instaler for you. Or if you want you can use your own defrag tool, and go into MSconfig and do what I mentioned with disabling the programs. And use the built in tool to clean up the hard drive of junk files. This is just my personal preference on tools to use, though the overall result should be the same weither you use windows default programs or what I use.
Now for parts you can use I can pretty much guarantee you the HD is usable along if it doesn't have any errors, check for that for win 7 it's called Error Checking and you right click on the C: drive or whatever hard drive you want to check and run it. Though it might have been called something else before like disk check in the past (should be the same thing). If that turns up with no errors you can use it in your new build, you can also use your optical drive (dvd reader/burner) and if you have an multimedia card reader you can reuse that as well most likely. 4 years ago in 2008 everything should have been sata I would imagine that you bought especially for an XPS assuming it still means high end computer for dell.