First I want let you know that Computer name is called a Hostname, now to know a computer name right click on your my computer icon or choose Start - My Computer - Right Click. Select properties as shown below.
Click on Computer Name Tab as Shown Below
How To Change Computer Name :-
In computer name screen , there is button to change a computer name, click to Change the name of computer.
It will show like above, give the name as you want and click OK , it will ask to restart the computer , restart the computer to take changes affect.
How to Know Computer Name using Command Window -
1.Open Run Window from Start or (Press Window Key + R )
2.Type cmd in window, Your command window will open.
3.Type hostname and press enter, you will get the name of your computer.
How to Know IP Address of Computer -
1.Open command window through Run.
2.Type ipconfig and Press enter, you will get details of your network properties, IP address will be shown first.