How to check hardware integrity