Custom widget version

Is there a way to recover the previous published version of a custom widget?  Is it available on disk or somewhere else that it can be recovered from?