How do PlayStation network know it's your PS3?

There is a special serial number on the PS3 system and when you connect there is an embed code on the network that links to the router you are getting the connection from. They check the embed code and if it fake or hacked they can permanently shut down your ps3 or even arrest you for possible fraud on the playstation store. There is no known way to override their embed code.