Arduino BLE Scanner with HM-10 BLE Module

Hello,
I'm newbie with BLE modules. I've found a lot of good samples about arduino BLE advertisment. But i want to use my arduino as BLE scanner. There are some Beacons and i want to get their uuid. How can i read them?

Thank you