Been playing around with the APN settings on my Qualcomm Android dev phone. I wanted to make sure I had the right Mobile Country Code and Mobile Network Code, since I knew I had the correct network id.
I threw together a J2ME app, MotorolaCellInfo.jar, that detects these values from my SIM card when I use it in my Motorola phone. This uses functionality that is only guaranteed to work on Motorola devices. For more, please see the source I used: Getiing Location Information (IMEI,MCC,MNC,LAC,CELLID) without GPS.
If you are the hacker type, check out the NetBeans project+source zip.