An experienced vet or vet tech can make a guess, but there’s no guarantee. Overall condition, appearance of the teeth, and any lenticular opacity (normal clouding of the eyes due to age) or cataract development will all give clues.
Just kidding, there is no definitive method but an experienced dog person can get a good idea from looking at teeth, eyes and distribution of body weight.