I figured this out. You have to create a function in Python that flags the user if the Adafruit product ID is equal to what it is on your computer.
#!/usr/bin/python
import sys
import usb.core
def checkadafruit():
      # find USB devices
      dev = usb.core.find(find_all=True)
      # loop through devices, printing vendor and product ids in decimal and hex
      flag = 0
      for cfg in dev:
          #if int(cfg.idProduct) == 24596:
            #  print('yes')
          a = int(cfg.idVendor)
          b = int(cfg.idProduct)
          c = 1027;
          d=24596;
          if b == d:
              flag = flag + 1
          else:
              flag = flag + 0
      return flag
