For the ram.
You will need the motherboard details or scan the computer from crucial with the scanner tool click here. This will tell you all the options you have for the ram in the computer.
For the hard drive
If you use the manufacturers web site and download the cloning tool. Yo will be able to transfer everything over to the larger drive. Or if you want a lean install, you just set the compter to boot from CD, with the new drive in and load windows on to this. If you use this method remember to disconnect the old 37 Gb drive.