my guess is it would depends on volume, same as any business production assembly.
I would imagine for something like MS Windows, where they really need an awful lot of CD's, there would be rather large machines with very large capacity. such large machines (total speculation BTW, but applying general production principles) have a high initial cost and 'tooling' cost (i.e. costs a lot each time you change whats in the CD, but because of the large number of CD's this is broken down to minimal per unit cost. Small batches on the other hand proly done with smaller machines, maybe just a hundred or whatever at a time. Usually for small numbers probably the pruduction is contracted out, whereas larger companies would have their own productionb facilities, same as a newspaper/magazine parent company will have their own printing uh, factory, whereas the local rag is usually done by some local printer who also handles jobs for other companies literature etc.