N.Y. Family Court Act § 653
Rules of court
Rules of court, not inconsistent with any law, may authorize the probation service to interview such persons and obtain such data as will aid the court in determining a habeas corpus or custody proceeding under section six hundred fifty-one.