Since the boat has not been sailed recently and has been outside for the past couple of years, I'd check the mast to see whether there are any leaks in it. If you take it off the boat and can hear water sloshing around inside then I'd strongly suggest draining it, finding the leak point, and re-sealing it before sailing.

Also check the shrouds and forestay to make sure that they haven't rusted through, however would think that they should be OK considering it's been outside only 2 years, but if you see more than a couple of strands broken anywhere then get yourself a replacement.