This has been asked before. Search the forum and you'll find the answer. In general you have to use the functions in gsmbas.lib and gsmadv.lib. As far as I know you can get cell id but you have to map it to a location yourself. I have not done it myself but some ways of doing this have also been discussed on this forum.
Can't give you a link since search isn't working right now but if you search for "cell id" I'm sure you'll find it.