Yes, it's called disk imaging, and you do it with programs like CloneZilla, Ghost, or TruImage.

Once you have a computer set up the way you want, it lets you take a snapshot of the way the computer is at that particular instant, and then later you can restore the computer back to that specific instant.

Other options are programs like Deep Freeze or Microsoft SteadyState. These programs essentially allow you to prevent any changes being made to the computer. Essentially every time you reboot, they are restored back to a specific configuration.