How to check ifconfig in di.xml ??

How to check if config in di.xml ??

It is not possible.
You can check the di.xml XSD schema here: github.com/magento/magento2/blob/2.4.7-beta2/lib/internal/Magento/Framework/ObjectManager/etc/config.xsd