Collecting device information