That's illegal in the US [1] and it's just the same in Europe. You can't go and withhold payment for work done - what you can do is file a claim in small claims or civil court, depending on the worth of the laptop.
[1] https://www.shrm.org/resourcesandtools/tools-and-samples/hr-...