Click on the Apple logo in the top left corner. Click on System Preferences. Click on Sharing. The computer name will appear at the top of the window that opens in the Computer Name field.