You will have to find the previous name from either the original course creation (or restore) event or from a \core\event\course_updated event both of which will have older versions of the name.
Teaching with Moodle
Log Api - Get course old fields value
This discussion has been locked so you can no longer reply to it.