I assume you are using WinXP
Ctrl+Alt+Del
There you can see Processes or Performance tab. Processes tab lists all processes and let's you see how much they use memory. Here's an article about optimizing Photoshop:
Optimize performance of Photoshop (CS2 on Windows)