You have physical memory (RAM) and virtual memory which is basically disk space used for temporary storage. Windows manages it itself (quite well on XP), as you have seen.
You could change it yourself (if you knew what you were doing

) in System Properties>Advanced>Performance.