OK - although I'm not sure why you're asking this is the Kindle forum rather than the Calibre forum

.
Simply copy your entire Calibre library folder to an external drive. Copy it to your new computer, install Calibre, and point it at your library location.