Hey Cence,
For a blueprint, you can use the Get All Actors of Class node to get all actors of a particular class (including just Actor) and then use that Array with a ForEachLoop as Rama mentions. In the loop, you can use the following setup to do a distance comparison and then execute whatever additional code you want after the Branch:
Hope this gets you going in the right direction!