It would be more cost effective to buy yourself a entry level server.
For example the HP Proliat ML330 will support upto 196Gb of RAM which is where you will struggle with a desktop PC, see here:
http://h10010.www1.hp.com/wwpc/us/en/sm/WF06a/15351-15351-241434-241646-241477-3948598.html