44 Pa.C.S. § 7172
(a) Inquiry.— A court of common pleas with competent jurisdiction may inquire into the official conduct of the constable if any of the following apply:
(b) Determination.— If the court determines that the constable is incompetent to discharge official duties, the following apply:
(1) The court may: