Not sure how this will work with a dance pad, but I've used this adapter to use my PS2 controller on PC and it works fine.
https://www.amazon.com/Gam3Gear-Converter-Controller-Keychain-PlayStation-3/dp/B01H5PCYYW/ref=sr_1_4?dchild=1&keywords=brook+ps2+to+pc&qid=1607680948&sr=8-4