Yes. The distinguishing feature of planned obsolescence is that the customer doesn't know the real design lifespan of the product. Just require companies to declare that and the problem goes away. Looks like the EU already does:
https://en.wikipedia.org/wiki/Planned_obsolescence#Regulatio...