S.C. Code Ann. § 20-7-460
Any judge shall have the power to issue a writ of habeas corpus to produce any person under the age of seventeen in court where necessary.