In this note we state weighted Poincare inequalities associated with a family of vector fields satisfying Hormander rank condition. Then, applications are given to relative isoperimetric inequalities and to local regularity (Harnack's inequality) for a class of degenerate elliptic equations with measurable coefficients.