This can be either your hardware or software playing up, it can be difficult to test what it is.
One thing you can do is go to http://www.memtest86.com/ and download the software and burn it to a CD using a ISO burning program and boot your pc from the cd. This testing could take long and maybe...