Geographic location detection

Is it possible for flash to somehow detect your geographic location?

Perhaps with the use of IP addresses or something?

If anyone has any example code, I would love to see it!

Cheers,
Doug