There are no such verses in Quran commanding to punish anyone who insults the Prophet Mohammad (S) or insult Allah (SWT). The court can not punish even someone confess in presence of million people.