It might be in the glove box or on the passenger side floor pan but you best bet is to go to the dealer with the VIN and proof of ownership they will be able to give you the code.
Take it back! If you bought it as is do this. Retrieve radio code and any other preset. This is called a "hard reset" and will return all modules to their factory settings, disconnect both battery cables and touch them together for 30 or more seconds then reconnect and see what happens. I would be interested to see how this turns out. I hope this helps. Take care. If you have more questions for me or want to let me know how you turn out use testimonial and it will show up in my email.
Remove the battery terminals from the car while it is turned off then continue applying brakes for about 10 minutes then reconnect your terminals. This will reset it