I don't think there's a lot to do with over-the-counter products to stop thinning hair. Medicine may help, although I don't think they'll give it out in mild cases. Most of the times, it's just genetics.
If you live and eat healthy, get enough sleep, that's the best what you can do. The rest is up to mother nature who is not always fair in life.