If you know the position and the partial charge of the atoms in one molecule, you can sure get the dipole moment of the molecule based on basic function here: http://en.wikipedia.org/wiki/Electric_dipole_moment.
But if you want to get it directly from gromacs, I havent seen it before, maybe you need some programming to obtain the value you wanted.