simples. Every internet account is given an IP address, ie, the address of your pc/connected devices. Its a bit like your postcode/zipcode...
just click either of the 2 links below and read what info is available about you, right now, to anyone on the internet. (scroll down page for the info)
Likewise, you can enter someone else IP address and find their approx location