N.Y. Criminal Procedure Law § 520.30
1. Following the posting of a bail bond and the justifying affidavit or affidavits or the posting of cash bail, the court may conduct an inquiry for the purpose of determining the reliability of the obligors or person posting cash bail, the value and sufficiency of any security offered, and whether any feature of the undertaking contravenes public policy; provided that before undertaking an inquiry, of a person posting cash bail the court, after application of the district attorney, must have had reasonable cause to believe that the person posting cash bail is not in rightful possession of money posted as cash bail or that such money constitutes the fruits of criminal or unlawful conduct. The court may inquire into any matter stated or required to be stated in the justifying affidavits, and may also inquire into other matters appropriate to the determination, which include but are not limited to the following: