As far as I know, there is no way to assign multiple ID numbers to courses. They are supposed to be unique (that's why there are the ID of the course )
In this particular case, I would probably use a meta-course where I'd put the real course contents, and enrol the external courses (with their different IDs) into this meta-course.
Saludos. Iñaki.