Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to Prevent users from Formatting Laptop.
If user can get into BIOS and if they can Boot using any Bootable USB or CD they can Format and install any OS.
You can configure BIOS password and Disable Boot from CD or USB.
--If the reply is helpful, please Upvote and Accept as answer--