It looks like you can do this however you should check the HM-10 firmware versions.
Look at this thread from January 2015 http://forum.arduino.cc/index.php?topic=288624.0
JNHuaMao will be releasing a new firmware version this month that will
give the HM-10 the capability to be use as an iBeacon finder/detector.
It will be Firmware Version V536.
Also look at the JNHuaMao web site because according to the above article the V536 firmware is designed to do exactly what you need so they must have an Arduino example for you.
Edit: And note this pdf from above article looks very useful. http://www.blueluminance.com/HM-10-as-iBeacon.pdf