Just to be on the safe side, consider that there may be a thermal problem. Try checking your CPU fan speed in the BIOS, as well as the temp of the CPU. It could be that your fan is running more slowly than normal (maybe 800-1000RPM) and is running ok during normal use (probably still hot) but gets hot enough to shut down (if thermal shutdown protection is enabled in the BIOS). Usually when I hear something is shutting down, I think heat. It is not uncommon for the stock (assuming you have one) P4 fans to slowly crap out, or to malfunction sharply without warning. Another possibility is that your power supply may have 400W written on it, but that number may be inflated (more of a peak performance number rather than a constant voltage number) and you could be under-supplying your computer (this is probably much less likely than a thermal problem). Maybe inspect your innards for dust and vacuum it if there's a bunch. The only other thing I can recommend is flashing the BIOS to the newest version and making certain that your video card drivers are the newest available (which you said you've done already). Googling hardware incompatibilities concerning your setup is always worth it, as well, to see if any others have seen the same problems.