soma, the best I've found in a quick search through google and microsoft.com is this:
Export Information from Your Library
This is aimed at Media Player 10, but it looks like it may work with Media Player 9. I'm not sure on how to import the data back in after an install. This will only save the library data, and not the actual music files on your HD. To save the files, you'll probably need another HD of some type.