How to check is Chrome is running in incognito mode using Applescript?
You can check the mode property:

tell application "Google Chrome"
    if exists window 1 then
        if mode of window 1 = "incognito" then
            -- insert your code here
        end if
    end if
end tell