This is completely up to each and every school. They all have their own rules and regulations. Some schools let their exchange students participate in the graduation ceremony, but without getting an official diploma. In some cases, you can ask your school for a transcript of your courses and grades.