It's kind of hard to understand your question... are you asking how software publishers port a PC game to a console platform?
I'm going to guess that they sign some form of non-disclosure agreement with Microsoft or Sony to get access to that particular platform's development kit and go from there.