My suggestion is to ensure the hard drive is wiped. Then re-install the operating system from disk or factory restore. Then ensure all the updates have been downloaded and installed. Afterwards, copy the registry hive to a safe place on the disk on onto cd as well..
Next create a batch file or power shell file that will re-instate the un-adultered registry hive that can be executed after each student session or at the end of the school semester.
Regardless of what settings have been altered by the student or what programs were subsequently installed on the system, re-instating the registry hive will void out any changes made by the student.
As a precaution, disk images should also be made before releasing the final setup to the students. Having disk images of the system will help restore it without all the hassles of doing installations from scratch.