Navigate to the course
Click the “Enrollments” tab.
Click the orange “CSV” icon at the bottom of the page.