The library information is stored as an .xml file or an .itl file. On my PC it is under
my documents/my music/itunes
That should keep all the library info. However I find itunes quite frustrating when moving music, and I'm not sure how easy it would be to relocate songs unless you put them in a folder with exactly the same path on your new computer. I guess as long as you keep the original mp3s/aacs/whatever you have, you should be ok.