How can I update my iPhone 4S on a different computer without erasing all of my contents???
You don't. Update to the computer you normally sync to.
If you're on IOS 5.0 or higher, then go to settings - general - software update - update, you'll need to be connected to wifi.
Retrieving data ...