How is a factory reset done?
If your buying a used iPod Touch whoever sold it to you will probably (and should) reset the device.   If its not or you just want to reset it you can do it by going into Settings > General > Reset > Erase all Content and Settings