Detect code, kind connected machine, device before execution of program