IIUC, it’s mostly not possible, because there is no sure way to know if a domain has “implemented DKIM”.
You can, in theory, do a DNS query for “_domainkey.example.com” and see if you get NXDOMAIN or NOERROR; the latter usually¹ means that there are subdomains present, which in turn would imply that there are some DKIM keys present in DNS (although you can’t know what the selector names are). But you don’t know if these keys are active, or if they are meant to be activated later. Or there might be multiple authenticated senders for a domain name, and some might use DKIM signing, but others might not.
1. Not all DNS servers obey the standards correctly, so the NXDOMAIN/NOERROR distinction only mostly works.