You have to buy a brand new copy for the PC. Both system including Windows ad Steam from what I hear, have different authentications and codes.
I think its to stop and prevent theft, so people cant just use one code for unlimited free acess using one code.
Well the steam and pc codes I think are mostly different because of the launcher you are using...idk.