There are several programs which will clone a drive but these usually require both drives to be connected at the same time. There is also the option, which I think is what you are referring to, to use a drive imaging program to make a disk image which is different to cloning. A Disk Image is a compressed image of the whole disk which can be restored using the restore facility of the program that made the image in the first place. There are several such free programs if that is your intention.
It is usually impractical to image a drive to anything other than a hard drive due to the large size of the active Windows partition. It is possible but depends on its size and the size of the chosen medium. Bear in mind that restoration usually requires the computer to be booted from a bootable USB or DVD drive which has the imaging program on it.