To stop Windows 7 automatic driver installation using the Local Group Policy Editor, click the Start button and type gpedit.msc into the Instant Search box at the bottom of the Start menu. Press Enter and the Group Policy Editor will open.

click to enlarge
Select Computer Configuration in the left pane of the window. Open Administrative Templates, System and then Driver Installation. Double-click Turn Off Windows Update Device Driver Search Prompt in the right side of the window. Go to the Setting tab of the dialog box. Select the Enable radio button, click Apply and then click OK.
You will need to restart the computer in order for this change to take effect.