All information obtained in discharge of official duties by any official or by any employee of the court shall be privileged, and shall not be disclosed to anyone other than the judge unless and until otherwise ordered by the judge or by the judge of a circuit court; provided, however, that in any case when such information shall disclose that an offense has been committed which would be a felony if committed by an adult, it shall be the duty of the official or employee of the court obtaining such information to report the same promptly to the attorney for the Commonwealth or the police in the county, city or town where the offense occurred. It shall not be deemed a violation of this section if the disclosed information is otherwise available to the public.
Va. Code § 16.1-303