It would be very difficult to issue any one size fits all protections with regard to warranties. Some products, like cars, should have longer warranties than others, like laptop computers. It would be impossible to require set durations for warranty coverage and it would be impossible to mandate that certain parts of all products be covered.
The only really feasible thing to do is to require clear and precise warranties and then to enforce those warranties by making it relatively easy to pursue claims against firms that fail to live up to the warranties. By making it easy to sue companies that do not adhere to their own policies, the government would force companies to fulfill their obligations under the warranties. By requiring clear and exact warranties, it would make it very obvious as to which companies had good warranties and which did not.