The good news is that most common nasties that would affect an animal wouldn't survive 2 years sitting in a dry dusty glass tank (even they have to eat)
You could wash it down with soap/water real well...then bleach it just to be safe.
On a side note 10 gal are so cheap these days ($5 on sale around here) why bother? Unless you are really tight for money (and if so you should reconsider getting a snake) then I would just buy a new one. You could also use a rubbermaid (or other) tub and set a new snake up that way...with better heat/humidity control versus a tank.
Good Luck