Windows XP and iTunes ??

I am about to scrub my old Win XP, format the HDD, and complete a new fresh install of XP. When I download and reinstall iTunes it will obviously be empty. So where do I go from here? How does the new iTunes know about the hundreds of songs, Apps, etc etc that currently exist on my iPod