In order for the Security Council to refer the situation to the ICC, there has to be agreement within the Security Council. That would be the first step in this case. Iraq and Syria are not parties to the Rome statute. They said they would have the possibility to refer the situation in their countries to the ICC, but they have chosen not to do so yet.
On October 27th, 2016. See this statement in context.