the use the Migration Assistant app to move everything over.

On a Windows machine there is a little more to it but it can be done.

You will find details at the Apple site or Google "how to move iTunes to a new Windows machine"

P