The setup I currently have is two computers connected through a crossover cable. I am trying to use the command line or Python to find the ip address of the other computer. Is there any way I could get one of the computers to find the ip address of the other computer if they are on a different network number?
This depends on the network mask. Depending on the network mask used, the same IP address can end up in different networks. To communicate directly (without routers involved), two devices need to be on the same network.
Have a look at this post: http://support.microsoft.com/kb/164015