The present configuration, as used to know which resources to retrieve, is present in the Resources' Configuration object:
getResources().getConfiguration().orientation;
You can view for orientation by searching at its value:
int orientation = getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
// In landscape
} else {
// In portrait
}
More data can be observed in the Android Developer.