Hi,
Based on my research, the PowerShell command or script may help you to do this, since there is not such a setting to do this in AD .
Sorry for not professional on the script, following link just for your reference:
https://devblogs.microsoft.com/scripting/the-scripting-wife-uses-powershell-to-find-service-accounts/
https://learn.microsoft.com/en-us/powershell/module/addsadministration/get-adserviceaccount?view=win10-ps
Best Regards,