If you want to distinguish between the first five cases invariants will not do, you need covariants. These cases are examples of so called coincident root loci, you can lookup the papers by my collaborator J. Chipalkatti for the equations for such things. See also Polynomial with two repeated rootsPolynomial with two repeated roots