The court shall order that an appropriate agency shall determine all criminal charges brought in any court against the defendant and report to the court on the status or the disposition of such charges. The court shall also be informed if the defendant is then serving any term of imprisonment, or is on probation or parole with reference to any such charges, or is entitled to credit for any time in accordance with section 9760 (relating to credit for time served).
42 Pa.C.S. § 9737