Former Philippine President Rodrigo Duterte could be released from detention at the International Criminal Court on Friday.