Of course you can create your own SQL database and store there steam IDs. Everytime somebody connects check if his steam ID exist in that db and if not - bingo.
But I guess you can use hlstatx if you run it on your server or something else that makes player statistics.