Usually it's best to desolder something using solderer and a solder sucker. If you lack a sucker, you can collect the solder using some other tool, though this method is rather messy and I wouldn't recommend it.

And if you lack an EPROM programmer, you can always swap the chips and dump using your regular dumping combo.