A prisoner shall forfeit all or part of his earned work, education, or good conduct credits in an amount to be determined by the Department of Corrections upon recommendation of the court if the court finds that the prisoner has done any of the following in a case pertaining to his incarceration or apprehension filed by him in state or federal court or in an administrative proceeding while incarcerated:
The court may make such findings on its own motion, on motion of counsel for the defendant, or on motion of the Attorney General, who is authorized to appear in the proceeding, if he elects, in order to move for the findings in a case in which the State or any public entity or official is a defendant.
S.C. Code § 24-27-200