Hello TC Ip,
Can you please elaborate exactly for which type of environments? Is this a specific context, well-defined?
CA Java SDK and REST programming APIs provide Policy Management API you can review, but not aware of what you're asking is covered.
Anyway, in a generalized case, it seems tricky to get this, as the incoming IP into a system is dependent on the path the request travels. One or more proxies or devices such as load balancers can change the request IP arriving at an authenticating system.
Regards.- Vijay