It is possible to understand what you are trying to say, but "... is plug to ..." is ungrammatical. There are various ways to correct it. For example:
I have no idea which cable plugs into which device. I have no idea which cable to plug into which device. I have no idea which cable should be plugged into which device.