Malaysia is issuing passports to its citizens with embeded 'smart cards' type technology so in the future, they can easily do a scan.
However, is guyin really asking if any country would automatically scan a foreigner's passport? That would be very unlikely, except possibly for bordering countries on friendly relations.