The effect of colloidal nanoparticles on the phase changes of the amphiphilic AB linear diblock, A1A2B, and A2B heteroarm star copolymers confined between two polymer brush substrates was investigated by using a real-space self-consistent field theory. By changing the concentrations of nanoparticles and polymer brushes, the phase structure of the amphiphilic AB copolymer transforms from lamellar to core-shell hexagonal phase to cylinder phase. The pattern of A2B heteroarm star copolymer changes from core-shell hexagonal phases to lamellar phases and the layer decreases when increasing the density of the polymer brushes. The results showed that the phase behavior of the system is strongly influenced by the polymer brush architecture and the colloidal nanoparticle numbers. The colloidal nanoparticles and the soft confined surface of polymer brushes make amphiphilic AB copolymers easier to form ordered structures. The dispersion of the nanoparticles was also investigated in detail. The soft surfaces of polymer brushes and the conformation of the block copolymers work together to force the nanoparticles to disperse evenly. It will give helpful guidance for making some new functional materials by nano etching technology, nano photoresist, and nanoprinting.