2017 should be AP2. It would have come with the older computer and probably older side cameras unless it was a late-2017 build. If you purchased the FSD upgrade (which is the only reason to care what it has) it would be updated to HW3 and the newer cameras and be effectively the same as a 2022 car in terms of AP hardware. You would also likely want to consider the MCU2 upgrade, which is the infotainment computer. Technically not part of autopilot, but more important for quality of life and seems to be needed for the current beta version of FSD (so you can see the updated visuals). They are not doing this upgrade for free even if you buy FSD, so I would guess they will either find a way for the production version of FSD to not bother with visuals on an MCU1 car, or cave and start providing the MCU upgrade as well to FSD-owners.