With a 32 bits OS you maximum RAM will be slightly less than 4GB, probably in the range of 3.5-3.75GB depending if your video card uses part of the RAM.
Moreover, an OEM license is tied to the motherboard, not the HDD it was installed on so you can legally install it on another HDD on the same PC. However, I think many OEM ship them preactivated so I don't know how easily it can be reinstalled if you could get a hold of an installation DVD (license # should be on a sticker somewhere on the PC). A Windows 7 license is also valid for both 32 and 64 bits so switching should cause any licensing issue. I suggest you contact your PC's manufacturer and ask them how you should proceed to reinstall if you change the HDD; they might send you a "kit" for a few dollars (~20-30$).