Actually, it is quite impossible. If you format your computer, there is no way that the data cannot be deleted. I know, it is pretty distressing, specially when it comes to the matter of deletion - you can't help it. It is meant to be that way.
But u can save ur data by sending that into a pendrive or in another device and send it back after the formatting of pc