How do geologists determine the hardness of a mineral?

You could have googled it though and have your answer is less time than waiting on someone here. You do the scratch test. Google the scratch test to read all about it.