If you can’t manage devices in a way which makes it possible to give them away to staff on separation, you can’t manage devices in a way which effectively protects against the risk of theft or loss.
So it’s probably not a tax write off but is a loss of whatever the laptops would get in bankruptcy liquidation.