sound foam does not work on fan noise.
I have the Lian Li PC61 with modded 120mm top hole.
Best thing you can do is the following (assuming the top fan is 80mm on your case):
4x panaflo L1A or 12L 80mm.
5.25" bay Fan controller - run 4 panaflos at 7V.
Seasonic S12 430 power supply - very quiet
Now the noise makers are your CPU fan, Chipset fan, GPU fan, HDDs.
CPU - SI-97 for SocketA, XP90 for all else unless you can fit the XP120
CPU FAN - Panaflo L1 92mm @ 7V
Chipset - Zalman NB47J, custom make if NB47J doesnt fit
GPU - Artic Cooling, Zalman, have aftermarket quiet coolers
HDD - Suspend, or place hdd on sorbothane
Edit: After all the above measures have been taken, you can now try sound insulation materials. I have extra egg crate bedding material behind my computer case. Most of the noise in my computer come from the front.