You can't do that without a database. You should set up a server for your game with a database that allows players to login, which is going to cost you some money.
As far as databases go, an easy program to use is called MySQL, which you can use in conjunction with PHP, as long as the server is PHP enabled.
However, you cannot collect data that would identify a player in the manner to which you are referring becaues, as PixelSmash said, it is a privacy issue.