It may be possible, but there's no guarantee. Steam can sometimes detect an existing The Sims 3 installation, as long as it's a legitimate copy of the game rather than a modified one.
If it doesn't pick it up automatically, your best bet is to reach out to Steam support directly and ask them how to link your copy: