It is looking for properties of the device or content on the medium so that AutoPlay can present a set of meaningful options to the user. When a user inserts a CD-ROM into a drive or attaches a USB camera, Windows detects the arrival and starts a process of examining the device or searching the medium.