One way that is commonly used is to keep your Calibre library in Dropbox (assuming it fits within the space constraint of a free
Dropbox account).
Note that if you go down this route it is important that you do not have Calibre running on both machines as Calibre does not (yet anyway) allow for multiple copies of Calibre to access the same database at the same time in a safe manner.