Extracting device information