Not sure how much time you plan to have available. Stoughton is not near any “nice” coastal towns – meaning a half hour or less. But if you are willing to drive a bit more maybe an hour --- Plymouth Ma is nice to visit. There are many nice south shore towns on the coast, but they aren’t like say working around Portsmouth, NH. They are very small towns that may have a few shops, but wouldn’t keep you very busy. Scituate Harbor, Hingham Harbor, and Cohasset --- they have some shops/scenic views, but not a whole lot. They are pretty just not so setup for activities. So if you simply want to drive around and see some scenic areas you could drive and get some pretty views.
Plymouth would have more viewing opportunities – I know you aren’t interested necessarily in history, but there are more shops and things rather than the towns I mentioned above.