Already upgraded to iOS 5 and can’t find your UDID? Forgot to register your iPhone with the developer portal? Don’t worry, just search for the “MobileSync” folder on your Mac or PC, and look in the Backup directory. The backup folders are named the same as your Device UDID!
Full Path: \Users\*your name*\Library\Application Support\MobileSync\Backup\