There's IsInSameCurrentLocAsRef which can check any level of location depending on the keyword passed in (LocTypeHold, LocTypeTown...). Examples show it called on the player. You'd need static ref's to check against - it's intended for use with characters that can move around, but the simple case should work, too.
Then again, IsInLocation is even easier. GetCurrentLocation returns a location, but then you have to check it against all the alternatives.
I couldn't find anything that returns a name string for use in messages, for example.