Hello,
Thank you for posting here.
There is no such function in AD. Perhaps there are three-party security softwares that can fulfill your needs.
If we want to prevent employees from taking any data out of the domain, the way we suggested is that do not allow employees to use any removable devices at the office.
Best Regards,
Daisy Zhou