HI!!!!
Unlock code at a free cost is not possible for this type of mobile, but do not worry about that one you can get the code at a reasonable cost itself,
The good place to get the unlock code for your Blackberry 8310 model mobile, you can visit this site
Classic Unlocking , it has the best instructions and simple methods for getting the code for your mobile ..........