Different punishments and penalties have been reported, in our religious sources, for the sins mentioned in the question. We will suffice to quoting a few traditions in this regard:
A) Shaking hands with a non-mahram:
1. The Holy Prophet (s) said: "Any man who shakes hands with a non-Mahram woman comes on the Day of Resurrection handcuffed then he will be ordered to the Fire."[1]
2. "Any man who shakes hands with a non-Mahram woman, without doubt he has made himself deserving of wrath and displeasure from Allah."[2]
B) Physical contact with non-Mahram: There are different forms of a physical contact with a non-Mahram. They include shaking hands (about which narratives were mentioned above), touching, "adultery" etc. There are different traditions in this regard some of which are as under:
1. The Holy Prophet (s) says: "Any man who hugs a non-Mahram woman, he is tied together with Shaitan to a chain of fire and both of are dragged and thrown unto the fire."[3]
2. Imam Reza (a.s.) said: "On the night of Me'raj (ascension), the Holy Prophet (s) saw a group of women who were subjected to punishment.[4] On that night a woman was seen having her face and body being cut by a (pair of) scissors. This was the punishment for showing her body and private parts to other men.[5]
C) Not wearing hijab: In the same foregoing tradition, it has been narrated that the Holy Prophet (s) saw a woman hanging by her hair and her brain was boiling. (This was the punishment of that woman who did not hide her hair by covering her head from men).[6]
For further information in this regard, see the following relevant indexes:
"Hijab in Islam", question 431 (site: 459).
"Philosophy of Women's Dress Code", question 825 (site: 884)
"Shaking hands with non-Mahram women", question 527 (site: 574)
"Haram and Sinful Gazes", question 1396 (site: 1420)
"Hugging a non-Mahram woman", question 6074 (site: 6257)
This question does not have a detailed answer.
[1] - «وَ مَنْ صَافَحَ امْرَأَةً حَرَاماً جَاءَ یَوْمَ الْقِیَامَةِ مَغْلُولًا ثُمَّ یُؤْمَرُ بِهِ إِلَى النَّار» (Shaykh Saduq, Thawab al-A'mal wa 'Eqab al-A'mal, p.g 283, Sharif Razi Publications 1985.
[2] - «مَنْ صَافَحَ امْرَأَةً تَحْرُمُ عَلَیْهِ فَقَدْ بٰاءَ بِسَخَطٍ مِنَ اللّٰهِ عَزَّ وَ جَلَّ» (Shaykh Saduq, Man La Yahzuruhul Faqih, vol.4, pg. 14, Jame'ah Mudarresin Publications, Qom, 1413 A.H.)
[3] - «من التزم امرأة حراما قرن فی سلسلة من النّار مع الشّیطان فیقذفان فی النّار» (Amili, Hurr, Wasail al-Shi'ah, vol.20, pg. 196, Aalulbayt Institute, Qom, 1409 A.H.
[4] - Shaykh Saduq, Uyoon Akhbar al-Reza (a.s), vol.2, pg. 10 and 11, Jahan Publications, 1378 A.H.
[5] - Ibid.
[6] - Ibid.