You cannot know the accepted syntax and you do not need to know it.
There is one default-transfer-syntax, that every application, that talks DICOM, must support: ImplicitLittleEndian. So if you use that transfersyntax,then you can always be sure that the others will be able to read it.
But if you want to read some DICOM tutorial about this basic steps, then read this great tutorials:
The author uses fo-dicom to give code-examples.