Its helpful if the two machines are in the same workgroup.
also, you can use the format
computername\username
to specific that you mean an account on the other machine.
a really good trick is to create an account on each machine that has the same username and password on each, and then when you access shares or network mapped drives on either, you will NOT be asked for a password at all.