Was this the very first time you ever plugged the phone into that computer?
Did you pay attention to the prompts you were given when you plugged it in?
Did you have iCloud backups turned on before you did this? I hope so... If you did, restore the phone from the last iCloud backup from before you wiped it. If not, then the photos, etc. are gone. Apps and music can be re-downloaded.