Reinstalling an operating system does not (automatically) wipe your hard drive. Even formatting the hard drive does not actually wipe the content of the hard drive. There are tools that can retrieve data on the hard drive after re/formating.
The only sure way if you want to keep or resell the hard drive is to use a program to write zeros, ones and random zeros and ones to the drive itself. If you are going to toss it, a hammer is just fine.
