This comes up from time to time. No it is not a very practical thing to do.
In your case when you just want to restore something that is already in then you could use a programmer to do a memory dump and store it as a file. Then restore it again with a programmer. But there is no way to do it without buying extra hardware that you will only use for this task, unless you get into blowing your own bootloaders.