I monitor the data generated in a machine that generates a file through the USB port.
It would be nice to know what that machine was.
the machine recognizes any USB drive and insert a data file into the pendrive.
That is only possible if the device inserted identifies itself appropriately. The Arduino will not say "Hey, I'm an external storage device" to the PC.
dare the arduino is possible to have a similar behavior so I can stick through the arduino collect the data file?
Where is the Arduino to store the data file? How much data? Is the Arduino going to do anything with the data?