There are many ways. Many offers for money...
Free Solution is not public...
It depends on, what exactly you have?
If E81 is an official Retail, then buy Mastercode by IMEI...
If E81 is Prototype, then Mastercode by IMEI is not in Database...
Easiest way is to have the Mastercode.