I agree DSSP is one good starting point. One could look for a region where the solvent accessibility values are all nearly zero. I imagine this would bring a lot of false positives though -- there are often residues that are not quite in the core but are still somewhat buried.
It's not clear whether OP just needs to evaluate this qualitatively or whether an actual algorithm is needed, but I think if we were to turn this into an unsupervised algorithm, we would need to consider the distance from the other buried residues.
Could you be more specific? What do mean by "know"? The residues in the hydrophobic core? The size of the hydrophobic core? What did you read/do so far? Eventually, the PDB is a database and by extension a file format. The end of your question should be "structure" instead of "PDB"...
In the beginning I want to know what residues are lying in the hydrophobic core. Then I want to know which atoms of the above mentioned residues are lying in the core.
I have edited the question