Hi,
you cannot do this in security filtering.
What you can do however is to use a WMI filter to check for IPv4 configuration on a target computers. Never tried this myself but there are many threads how to do this. But the logic is not denying GPO on it but allowing GPO on specific IP ranges.
See if that works.