Look at the phone and see what the modem firmware on it. If it is 05.13 or below, you can unlock it with ultrasn0w. Anything higher than 05.13, you are out of luck.
Like Labman said above, Iclairifed.com has all the tutorial info you need to jailbreak/unlock your phone if you want to do it.