“Can a grandparent demand a paternity test on the grandchild? With or without the parent’s consent?”

No.

And an additional question is why, if the parents don’t wish to do a paternity test themselves, you would want to do so without their permission. Hard as it is to see grown children make what we think are mistakes, they are grown children, and the choices they make are theirs to make.