Am a bit confused here. Are you asking how to get the phone number from a particular device?
If yes, you could make a call from it, you could go to options / security / sim, and check it there...
Unless of course I've totally mis-understood the question. And believe me, that's possible...
Wait, I've just check the location of this thread. Are you asking for 'coding' that would generate the number for you? Like on the Nokia's you can do somehting like #760...# and it tells you the number...