Ask your router? Is there a generic way to do this, or do you mean "look into its vendor-specific management interface"?
NAT-PMP, UPnP-IGD or PCP can be used for that. Home routers usually support at least one of those, but you may have to explicitly enable it.
3 competing techs... Of course this doesn't suffice in a variety of situations which is why STUN is a thing: https://tools.ietf.org/html/rfc3489
I'm NAT'd, though with an external IP, so the IP my router sees is not the same as what the world sees--while my ISP did provide me this information in an email, it's much faster for me to ask Google or whatnot than to dig the email up.
If your ISP is doing a CGNAT, which are becoming more and more common, not even the router knows the public address.
Assumes:
* You have login access to the router
* Your router is directly exposed to the internet
* You're not using a VPN