Hi teddyflores,
Outside of a very specific use case, there isn't a way to see where a sign in occurred. That use case is specifically for an account that has two-factor authentication on it. If a new device signs in, you'll see a general geolocation tag for where they're signing in from. It still will not give a full IP address or even a specific block etc, and you only see it until you either approve or deny that sign in.
That said, you can see what devices are currently signed into your Apple ID and take steps to remove any you don't recognize.
If you need assistance beyond this regarding a compromised account, we'd advise contacting Apple Support directly for assistance.
Cheers!