To retrieve your KCPE index number, you need to visit your school and get the details. There is no way to get the index number online if you have lost all documents that contained the index number.
You can also check any exams that you have done before in your final year. Most schools use the index number in term exams.