If you open your phone, and take out the battery, you will see a label underneath the battery. On that label, you will see the code. On mine, the code is just above the FCC ID.
There are applications out there that will allow you to change the code on the phone. (Not warez...but actual programs...