Don't quote me on this, but I believe the ratings will stay if you copy over all of your iTunes' music library folder, including the files that aren't music, some of those files store you playlists, and they might even store your ratings for all I know.