Read only current midi values

Hi, I would like to read current midi parameter value from the device without setting/changing/touching it. Is it possible to read only midi values ? Finally I'd like to automatically get all midi cc values from needed parameters and output them in terminal console window ( perhaps with storing them in a file )