Duplex can be set via config, but there's no way to interrogate the printer to find out whether or not duplex is supported by a printer.
Note, some printers will misreport or misrepresent the presence of a duplexer due to identical printers and printer drivers having duplex as an aftermarket add-on option.
See also #581