A writ of habeas corpus is not a remedy available to an applicant who is incarcerated or detained under a lawful order, or judgment and sentence to seek relief from sanctions imposed upon an applicant or administrative decisions made with regard to such application arising out of disciplinary or administrative actions of the penal institution where the applicant is being confined.
SDCL 21-27-1.1