Are you out of contract? If so, it's nothing more than a phone call to your carrier. Some carriers will let you request the unlock online.
I don't know if there is a free way. If you are in contract, there are numerous services on eBay. The cost is much higher these days for in-contract devices.