iTunes library sync between two computers
The only way to do this, according to Apple, is to set the devices to manually manage content. If you have auto-syncing enabled, it can only be connected to one computer.


  You can manage your iPhone, iPad, or iPod with multiple computers1,2 as long as you have set the device to "Manually manage music."


Source: http://support.apple.com/kb/ht1202