That's an awesome idea - but the tax difference would have to be high enough to incentivize people to choose the products with long warranty, and hence to push the companies to provide long warranty.
However, there's too big chance that all the producers might have an unwritten deal to propose the same length of warranty anyway :(