For most purposes it does not matter whether they are unmarried or divorced.  However, if you are the paternal grandparents there has to be paternity that is established by father before you can seek visitation rights.