I tried to change my server name with following commands but this worked half way only.
sp_dropserver 'Lucky-PC\SQLEXPRESS'
sp_addserver 'SQLEXPRESS'
select * from sys.servers -- This gives me the server name as SQLEXPRESS
select @@servername -- I get this value as NULL