The First Minister will attend a memorial service in Edinburgh to commemorate the life of Corporal Thomas Peck Hunter.