Yes, make sure the caller’s CLI is presented and then you can retrieve the areacode/prefix from the ANI, which should tell you where they are calling from.
There are two functions in IRD which might make this easier if you’re in the USA - NPA and NPANXX. NPA returns the first 3 digits of the ANI which should let you find out the area code. NPANXX returns the first 6 digits to give you the area code and prefix.