When a course is cloned, the new course is just a course. It doesn't have any special properties that can be detected. But I am not sure what you are trying to do.
Are you trying to generate a list of courses with identical content?
Are you trying to generate a list of backup/restore actions?
When we know more about what you are trying to do, we may be able to offer better suggestions.