Hello YY,
There is currently no single function to do this, but you could use the imaqROItoMask function to get a image of zeros and ones (the ones show where the ROI is). And then go through the array and find the ones, recording the location in another array.
Hope this helps,
Brad Buchanan
National instruments