They generally mean the same thing. The term sociopath refers to the diagnosis of ASPD. While sociopathy isn’t its diagnosis, many people still use it when referring to the symptoms associated with ASPD.