BLUETOOTH + IPHONE + ARDUINO

Ok, forget the iPhone momentarily. Is there a way to make an arduino scan for bt devices and run a command once a certain bluetooth device (call it devx) is detected within range without actually connecting to devx?